ecal_req = '>= 3.33.1'
eds_req = '>= 3.33.1'
gcr_req = '>= 3.90.0'
-gio_req = '>= 2.79.2'
-gi_req = '>= 1.49.1'
-gjs_req = '>= 1.81.2'
+gio_req = '>= 2.85.1'
+gjs_req = '>= 1.85.1'
gtk_req = '>= 4.0'
mutter_req = '>= 49.beta'
polkit_req = '>= 0.100'
eds_dep = dependency('libedataserver-1.2', version: eds_req)
gcr_dep = dependency('gcr-4', version: gcr_req)
gdk_pixbuf_dep = dependency('gdk-pixbuf-2.0')
-gi_dep = dependency('gobject-introspection-1.0', version: gi_req)
+gi_dep = dependency('girepository-2.0', version: gio_req)
gio_dep = dependency('gio-2.0', version: gio_req)
gio_unix_dep = dependency('gio-unix-2.0', version: gio_req)
gjs_dep = dependency('gjs-1.0', version: gjs_req)
#include <clutter/clutter.h>
#include <glib-unix.h>
#include <glib/gi18n-lib.h>
-#include <girepository.h>
+#include <girepository/girepository.h>
#include <meta/meta-context.h>
#include <meta/meta-plugin.h>
#include <meta/prefs.h>
#ifdef HAVE_EXE_INTROSPECTION
static void
-maybe_add_rpath_introspection_paths (void)
+maybe_add_rpath_introspection_paths (GIRepository *repo)
{
ElfW (Dyn) *dyn;
ElfW (Dyn) *rpath = NULL;
g_debug ("Prepending RPATH directory '%s' "
"to introsepciton library search path",
rpath_dir->str);
- g_irepository_prepend_search_path (rpath_dir->str);
- g_irepository_prepend_library_path (rpath_dir->str);
+ gi_repository_prepend_search_path (repo, rpath_dir->str);
+ gi_repository_prepend_library_path (repo, rpath_dir->str);
}
}
#endif /* HAVE_EXE_INTROSPECTION */
static void
shell_introspection_init (void)
{
+ g_autoptr (GIRepository) repo = NULL;
- g_irepository_prepend_search_path (MUTTER_TYPELIB_DIR);
- g_irepository_prepend_search_path (SHELL_TYPELIB_DIR);
+ repo = gi_repository_dup_default ();
+
+ gi_repository_prepend_search_path (repo, MUTTER_TYPELIB_DIR);
+ gi_repository_prepend_search_path (repo, SHELL_TYPELIB_DIR);
/* We need to explicitly add the directories where the private libraries are
* installed to the GIR's library path, so that they can be found at runtime
* when linking using DT_RUNPATH (instead of DT_RPATH), which is the default
* for some linkers (e.g. gold) and in some distros (e.g. Debian).
*/
- g_irepository_prepend_library_path (MUTTER_TYPELIB_DIR);
- g_irepository_prepend_library_path (GNOME_SHELL_PKGLIBDIR);
+ gi_repository_prepend_library_path (repo, MUTTER_TYPELIB_DIR);
+ gi_repository_prepend_library_path (repo, GNOME_SHELL_PKGLIBDIR);
#ifdef HAVE_EXE_INTROSPECTION
- maybe_add_rpath_introspection_paths ();
+ maybe_add_rpath_introspection_paths (repo);
#endif
}
context = meta_create_context (WM_NAME);
meta_context_add_option_entries (context, gnome_shell_options,
GETTEXT_PACKAGE);
- meta_context_add_option_group (context, g_irepository_get_option_group ());
+ meta_context_add_option_group (context, gi_repository_get_option_group ());
session_mode = (char *) g_getenv ("GNOME_SHELL_SESSION_MODE");
#include <stdlib.h>
#include <string.h>
-#include <girepository.h>
+#include <girepository/girepository.h>
#include <gjs/gjs.h>
#include "shell-global.h"
main (int argc, char **argv)
{
GOptionContext *context;
+ g_autoptr (GIRepository) repo = NULL;
g_autoptr (GError) error = NULL;
ShellGlobal *global;
GjsContext *js_context;
global = shell_global_get ();
js_context = _shell_global_get_gjs_context (global);
- g_irepository_prepend_search_path (MUTTER_TYPELIB_DIR);
- g_irepository_prepend_search_path (SHELL_TYPELIB_DIR);
+ repo = gi_repository_dup_default ();
+
+ gi_repository_prepend_search_path (repo, MUTTER_TYPELIB_DIR);
+ gi_repository_prepend_search_path (repo, SHELL_TYPELIB_DIR);
if (argc < 2)
{